points = []
for i in range(20):
    for j in range(21):
        points.append((i, j))
lines = set()
for i in range(len(points)):
    for j in range(len(points)):
        x1, y1 = points[i]
        x2, y2 = points[j]
        if x2 != x1:
            k = (y2 - y1) / (x2 - x1)
            b = y1 - k * x1
            lines.add((k, b))
        else:
            lines.add(f'y={x1}')

print(len(lines))
